<div class="content">
  <h1 mat-dialog-title class="title">交割</h1>
  <form  #deliverForm="ngForm">
    <div mat-dialog-content class="deliver-form">
      <mat-form-field appearance="standard">
        <mat-label>设备名称</mat-label>
        <input readonly matInput [value]="assetInfo.assetName" name="assetName">
      </mat-form-field>

      <mat-form-field appearance="standard">
        <mat-label>原负责人</mat-label>
        <input readonly matInput [value]="assetInfo.sysUser.realName" name="realName">
      </mat-form-field>

      <mat-form-field appearance="standard">
        <mat-label>交割人</mat-label>
        <mat-select placeholder="交割人" [(value)]="deliver.new_userid">
          <mat-option *ngFor="let user of users" [value]="user.id">
            {{user.realName || user.username}}
          </mat-option>
        </mat-select>
        <mat-error *ngIf="false"></mat-error>
      </mat-form-field>
      <!--<div>-->
        <!--<label>交割人：</label>-->
        <!--<select [(ngModel)]="deliver.new_userid" name="new_userid">-->
          <!--<option *ngFor="let user of users" [value]="user.id" >-->
            <!--{{user.realName || user.username}}-->
          <!--</option>-->
        <!--</select>-->
      <!--</div>-->
    </div>
    <div mat-dialog-actions class="buttons">
      <button mat-button (click)="onSubmit()">确认</button>
      <button mat-button [mat-dialog-close] cdkFocusInitial>取消</button>
    </div>
  </form>
</div>
